DeleteScalingGroup
Description
deletes a specified scaling group.
Request Method
POST
Request Path
/apsara/route/Ess/DeleteScalingGroup
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
ScalingGroupId | BODY | string | Yes | No sample value for this parameter. | ID of the scaling group. |
ForceDelete | BODY | bool | No | No sample value for this parameter. | If the scaling group has an ECS instance or is in progress, whether to forcibly delete the scaling group and remove and release the ECS instance. The default value is false, which means that the scaling group is not forcibly deleted. |
version | BODY | string | No | 2016-01-01 | version of api |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
The specified scaling group does not exist under this user account | invalidscalinggroupid.notfound | The specified scaling group does not exist. | 404 |
The user has not fully authorized the Auto Scaling Open API interface | forbidden.unauthorized | A required authorization for the specified action is not supplied. | 403 |
ECS instances are also in the specified scaling group | instanceinuse | You cannot delete a scaling configuration or scaling group while there is an instance associated with it. | 400 |
Example
Successful Response example
{
"The specified scaling group does not exist under this user account":"The specified scaling group does not exist.",
"The user has not fully authorized the Auto Scaling Open API interface":"A required authorization for the specified action is not supplied.",
"ECS instances are also in the specified scaling group":"You cannot delete a scaling configuration or scaling group while there is an instance associated with it."
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}